package reuse.agency;

/**
 * 继承的方式构造飞船
 *
 * @author sun.ye
 * @since 2020-05-12 14:43
 */
public class SpaceShip extends SpaceShipControls {
    private String name;

    public SpaceShip(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }

    public static void main(String[] args) {
        SpaceShip spaceShip = new SpaceShip("NASA SpaceShip fall down");
        spaceShip.back(100);
    }
}